from rest_framework.pagination import PageNumberPagination


class CustomPagination(PageNumberPagination):
    # 默认大小
    page_size = 5
    # 可以指定页码大小
    page_size_query_param = "page_size"
    # 最大页码大小
    max_page_size = 50
